package com.whp.bean;

import com.whp.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wanghp
 * @version 1.0
 * @date 2020/6/5 14:09
 */

public class Person {

	private MessageService messageService;

	private String name;
	private int age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public void message() {
		System.out.println("this is Person class");
		System.out.println(this.getName()+"今年"+this.getAge()+"岁啦");
	}

	public MessageService getMessageService() {
		return messageService;
	}

	public void setMessageService(MessageService messageService) {
		this.messageService = messageService;
	}

}
